package com.api.demo.service;

import com.api.demo.entity.Content;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

public interface ContentService extends IService<Content> {
    Content createContent(Content content);
    Content updateContent(Content content);
    IPage<Content> getContentList(Page<Content> page);
    IPage<Content> getMyContentList(Page<Content> page, Long userId, Integer status);
    Content getContentDetail(Long id);
    void deleteContent(Long id, Long userId);
    void likeContent(Long contentId, Long userId);
    void unlikeContent(Long contentId, Long userId);
    IPage<Content> searchContent(String keyword, Integer type, Integer status, Page<Content> page);
    IPage<Content> homeContent(Page<Content> page, Long userId);
} 